<?php

namespace Admin\Controller;

use Think\Controller;

class FeedbackController extends BaseController
{

    /**
     * @desc
     * @author Egor<http://gitee.com/seosite>
     */
    public function index()
    {


        $miner = M('feedback f');
        $count = $miner->count();
        $page = new \Think\Page($count, 10);
        $show = $page->show();
        $list1 = $miner->join("left join jade_user u on u.id = f.uid")->field('f.*,u.openid')->limit($page->firstRow . ',' . $page->listRows)->order("id DESC")->select();


        $this->assign('list', $list1);
        $this->assign('show', $show);
        $this->display();
    }

    public function del()
    {
        $id = I('id');
        M('feedback')->where("id = $id")->delete();
        $this->success("删除商品成功");
    }
}


?>